package com.jt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    /**
     * springmvc规则:
     *  默认智能拦截前缀型的请求,像/index /add /user等
     *  但是遇到请求/index.html则表示查询某个具体的文件,不会访问springmvc
     * @return
     */
    @RequestMapping("/index")
    public String index(){
        return "index";
    }

    /*@RequestMapping("/{Module}")
    public String Module(@PathVariable String Module){
        return Module;
    }*/
}
